package day35_42.day35;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main02 {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        while (scn.hasNext()){
            List<String> list = new ArrayList<>();
            List<String> listReal = new ArrayList<>();
            String str = scn.nextLine();
            String strIf = scn.next();
            list = Arrays.asList(str.split(","));
            String strCur;
           int a = 0;
            for (int i = 0; i < list.size(); i++) {
                if (list.get(i).contains(" ")){
                    strCur = (list.get(i -1).replace("\"" , "") + list.get(i).replace("\"" , ""));
                }else{
                    strCur =  list.get(i);
                }
                listReal.add(strCur);
            }
            for (int i = 0; i < listReal.size(); i++) {
                if (listReal.get(i).equals(strIf)) a = 1;
            }
            if (a == 1) System.out.println("Ignore");
            else System.out.println("Important!");
        }
    }

}
